#ifndef CIRCLE_H
#define CIRCLE_H

#include <QGraphicsEllipseItem>

class Circle : public QGraphicsEllipseItem{

public:
    Circle(qreal x1, qreal y1, qreal r);
    void setCenter(qreal nx1,qreal ny1);
    void setRadius(qreal r);
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    qreal getCenterX(){ return m_center->x(); }
    qreal getCenterY(){ return m_center->y(); }

private:
    QPointF* m_center;
    qreal m_radius;

};

#endif // CIRCLE_H
